#include "SettingController.h"

SettingController::SettingController()
{
    m_view = SettingView::getInstance();
    m_model = SettingModel::getInstance();
    m_model->readSettingConfFromFile();
}

SettingController::~SettingController()
{
}

void SettingController::showSetting()
{
    m_model->readSettingConfFromFile();
    m_view->showSetting(m_model->getSettingConf());
}

void SettingController::saveSetting()
{
    m_model->saveSettingConf2File(m_view->getSetting());
}
